package org.darkforest.dao.mapper;

import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.Invoice;

import java.util.List;

@DBMapper
public interface InvoiceMapper {
    int deleteByPrimaryKey(Integer invId);

    int insert(Invoice record);

    int insertSelective(Invoice record);

    Invoice selectByPrimaryKey(Integer invId);

    /**
     * 根据买家ID查询该买家的发票保存记录
     * @param userId
     * @return
     */
    List<Invoice> selectInvoiceByMember(Integer userId);

    int updateByPrimaryKeySelective(Invoice record);

    int updateByPrimaryKey(Invoice record);


}